package com.nineoldandroids.view;

import android.view.View;
import android.view.View.OnClickListener;

public class ViewWrapper {
    private View mTarget;
 
    public ViewWrapper(View target) {
        mTarget = target;
    }
 
    public int getWidth() {
        return mTarget.getLayoutParams().width;
    }
    
 
    public void setWidth(int width) {
        mTarget.getLayoutParams().width = width;
        mTarget.requestLayout();
    }
    public int getHeight() {
    	return mTarget.getLayoutParams().height;
    }
    
    
    public void setHeight(int height) {
        mTarget.getLayoutParams().height = height;
        mTarget.requestLayout();
    }
    public void setOnClickListener(OnClickListener l){
    	mTarget.setOnClickListener(l);
    }
    
    
    
    public void setTag(Object tag) {
    	mTarget.setTag(tag);
	}
    public View getView(){
    	return mTarget;
    }
    
}